Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make scheduler preemptive #2208

Merged
merged 4 commits into from
Jun 7, 2022
Merged

Make scheduler preemptive #2208

merged 4 commits into from
Jun 7, 2022

Conversation

RalfJung
Copy link
Member

@RalfJung RalfJung commented Jun 6, 2022

This is actually fairly easy. :D I just roll the dice on each terminator to decide whether we want to yield the active thread. I think with this we are also justified to no longer show "experimental" warnings when a thread is spawned. :)

Closes #1388

@RalfJung RalfJung force-pushed the preempt branch 3 times, most recently from 769f9ae to 891dfe7 Compare June 6, 2022 23:56
@@ -1,6 +1,6 @@
// ignore-windows: Concurrency on Windows is not supported yet.
// compile-flags: -Zmiri-ignore-leaks
// error-pattern:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oli-obk btw, this was matching the warning that used to be printed when spawning a thread. There was no actual 'error' in this execution. I don't think ui_test should have accepted this.

@RalfJung
Copy link
Member Author

RalfJung commented Jun 7, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Jun 7, 2022

📌 Commit 11a8b3a has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Jun 7, 2022

⌛ Testing commit 11a8b3a with merge ad576d8...

@bors
Copy link
Contributor

bors commented Jun 7, 2022

☀️ Test successful - checks-actions
Approved by: RalfJung
Pushing ad576d8 to master...

@bors bors merged commit ad576d8 into rust-lang:master Jun 7, 2022
@RalfJung RalfJung deleted the preempt branch June 7, 2022 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Miri hangs in spin loops forever
2 participants